// 表格列
import tagRender from '@/components/aggridCellRenDerer/tagRender.vue'

let tableColumnsjth: any = [
    {
        headerCheckboxSelection: true,
        checkboxSelection: true,
        width: 50,
        showDisabledCheckboxes: false,
        pinned: 'left',
    },
    {
        headerName: '生产序号',
        field: 'serialNum',
    },
    {
        headerName: '机台号',
        field: 'coordinate',
    },
    {
        headerName: '状态',
        field: 'rowsState',
        cellRenderer: tagRender,
        cellRendererParams: {
            styleClass: (params: any) => {
                console.log(params)
                return params.rowsState == 0
                    ? 'success'
                    : params.rowsState == 1
                        ? 'warning' : ''

            },
            text: (params: any) => {
                return params.rowsState == 0
                    ? '正常'
                    : params.rowsState == 1
                        ? '超出交期' : ''
            },
            eltagSize: 0,
        },
    },
    {
        headerName: '织造单号',
        field: 'weaveingCode',
    },
    {
        headerName: '调机类型',
        field: 'maintainType',
    },
    {
        headerName: '计划单号',
        field: 'planOrderCode',
    },
    {
        headerName: '坯布编号',
        field: 'greyCode',
    },
    {
        headerName: '坯布名称',
        field: 'greyName',
    },
    {
        headerName: '产品类别',
        field: 'productType',
    },
    {
        headerName: '分配重量',
        field: 'alreadyWeight',
    },
    {
        headerName: '分配匹数',
        field: 'pieceNum',
    },
    {
        headerName: '上线时间',
        field: 'startTime',
    },
    {
        headerName: '完成时间',
        field: 'endTime',
    },
    {
        headerName: '针筒',
        field: 'workDrum',
    },
    {
        headerName: '订单交期',
        field: 'weavDeliveryDate',
    },
]
export {
    tableColumnsjth,
}